<?php
namespace app\api\model;


use app\model\Base;

class PigGetLog extends Base
{
    public function getTypeFormatAttr($value, $data)
    {
        $str = "";
        $type = PigOrder::where('id', $data['order_id'])->value('type');
        switch ($type){
            case 'month':
                $str = '30天收益';
                break;
            case 'quarter':
                $str = '90天收益';
                break;
            case 'half':
                $str = '180天收益';
                break;
        }
        return $str;
    }
}